﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Configuration;

namespace CleanupAccountsInRedis
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                var redisConnectionString = ConfigurationManager.ConnectionStrings["ClientPlatform"];
                if (redisConnectionString == null)
                    throw new ArgumentException("No connection string for ClientPlatform inf the config file!");

                var redisCleanup = new RedisCleanup();

                redisCleanup.Execute(redisConnectionString.ConnectionString);

                Console.WriteLine("Done!");
                Console.ReadKey();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                Console.WriteLine(ex.StackTrace);
                Console.ReadKey();
            }
        }
    }
}
